<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="header" >
  <div  class="left-btn pointer" onClick="window.location='{$appymdian}'"><span class="iconfont icon-back"></span></div>
  <div class="title">订单管理</div>
  <div class="right-btn" id="showSearch"><span class="iconfont icon-search"></span></div>
</div>
<div class="row">
  <div class="tabs-border  i4"> 
  <a href="{$appymdian}?m=ymdian_order&status=0" class="item {if get('status') eq 0}active{/if}">未处理</a> 
  <a href="{$appymdian}?m=ymdian_order&status=1" class="item {if get('status') eq 1}active{/if}">已确认</a> 
 
  <a href="{$appymdian}?m=ymdian_order&status=3" class="item {if get('status') eq 3}active{/if}">已完成</a> 
  <a href="{$appymdian}?m=ymdian_order&status=10" class="item {if get('status') eq 10}active{/if}">已取消</a> 
  </div>
</div>
<div class="row">
<form method="get" action="{$appymdian}">
  <input type="hidden" name="m" value="ymdian_order" />
  <input type="hidden" name="a" value="default" />
  <input type="hidden" name="status" value="{$smarty.get.status|intval}">
  <div class="pd-5" id="searchBox" style="display:none">
    <div class="input-row">
      <label >订单号</label>
      <input type="text" name="orderno" value="{$smarty.get.orderno}" />
    </div>
    <div class="input-row">
      <label>用户</label>
      <input type="text" name="nickname" value="{$smarty.get.nickname}" />
    </div>
    <div class="input-row">
      <select name="status" class="txt">
        <option value="-1">请选择状态</option>
        
{foreach item=c key=k from=$order_status_list}
{if $k lt 99}
        <option value="{$k}" {if $smarty.get.status eq $k} selected="selected" {/if}>{$c}</option>
        {/if}
{/foreach}

      </select>
    </div>
    <div class="form-btns">
      <button type="submit"   class="btn btn-warning btn-row"  >
      搜索
      </button>
    </div>
  </div>
</form>
<div class="market_tabs">
  <div class="first_item">共{$rscount}笔</div>
  <ul class="last_item">
    <li class="b3"><a href="{$baseurl}&orderby=id&index={if get('orderby') eq 'id' && get('index') eq 'asc'}desc{else}asc{/if}" class="{if get('orderby') eq 'id'}cur{/if}">时间</a></li>
    <li class="b2"><i class="ico top  {if get('index') eq 'asc'}cur{/if}"></i><br>
      <i class="ico bot {if get('index') eq 'desc'}cur{/if}"></i></li>
    <li class="b1"><a href="{$baseurl}&orderby=sushe&index={if get('orderby') eq 'sushe' && get('index') eq 'desc'}asc{else}desc{/if}" class="{if get('orderby') eq 'sushe'}cur{/if}">寝室号</a></li>
  </ul>
</div>
 
 <div class="clearfix"></div>
<div class="uclist" > {foreach item=c from=$data}
  <div class="item" onClick="window.location='{$appymdian}?m=ymdian_order&a=show&order_id={$c.order_id}'">
   <div class="hd"> {$c[address].p_c_t}-{$c[address].sushe}寝室 <span class="right">订单号:{$c.orderno}</span> </div>
   <div class="row pos">
    <div class="g-s1">
     
      <div class="h2">共{$c.num}件 合计{$c.money}元 <span class="right">{$c[address].truename}</span></div>
      <div class="h2">{$c.dateline|date:Y-m-d H:i:s}  
      	<span class="right">&nbsp;{if $c.ispay eq 2}
        			{if $c.paytype eq 'alipay'}支付宝{elseif $c.paytype eq 'wxpay'}微信支付{else}在线支付{/if}
        		{else}{if $c.unpay}货到付款{else}未支付{/if}{/if}</span>
      </div>
    </div>
    <div class="g-m1"> &gt; </div>
    <div class="clearfix"></div>
    </div>
  </div>
  {/foreach}
  {$pagelist} </div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script> 
<script>
$(function(){
	
	$("#showSearch").on(CLICK,function(){
		$("#searchBox").toggle();
	});
	
})
</script> 
{assign var="botnav" value="ymdian_order"}
{include file="footer.html"}
